package net.xdclass.oss.model;

import lombok.Data;
import net.xdclass.oss.enums.AttachmentType;
import org.springframework.data.annotation.Id;

@Data
public class Attachment extends BaseEntity {

    @Id
    private Integer id;

    /**
     * Attachment name.
     */
    private String name;

    /**
     * Attachment access path.
     */
    private String path;

    /**
     * File key: oss file key or local file key (Just for deleting)
     */
    private String fileKey;

    /**
     * Thumbnail access path.
     */
    private String thumbPath;

    /**
     * Attachment media type.
     */
    private String mediaType;

    /**
     * Attachment suffix,such as png, zip, mp4, jpge.
     */
    private String suffix;

    /**
     * Attachment width.
     */
    private Integer width;

    /**
     * Attachment height.
     */
    private Integer height;

    /**
     * Attachment size.
     */
    private Long size;

    /**
     * Attachment upload type,LOCAL,UPYUN or QNYUN.
     */
    private AttachmentType type;

}
